package com.wulian.user.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 *@Description:()
 * @author  caifulin
 * @date  2020/7/23 18:13
 * @version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("company_manager")
@ApiModel(value = "企业管理")
public class CompanyManager extends Model<CompanyManager> {


    @ApiModelProperty("公司id")
    @TableId(value = "company_id",type = IdType.AUTO)
    private Integer companyId;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("1:有限责任公司")
    private Integer type;

    @ApiModelProperty("0:正常 1:封存")
    private Integer status;

    @ApiModelProperty("法人")
    private String legalPerson;

    @ApiModelProperty("注册资本")
    private Double registeredCapital;

    @ApiModelProperty("成立日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date foundDate;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("经营范围")
    private String businessScope;

    @ApiModelProperty("logUrl")
    private String logoUrl;

    @ApiModelProperty("企业标记")
    private String companyLogo;

    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date startDate;

    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date endDate;

    @ApiModelProperty("维护人id")
    private Integer managerUserId;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;

    @ApiModelProperty("修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date updateTime;

    @ApiModelProperty("0-正常，1-删除")
    private Integer delFlag;

    public CompanyManager() {
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }
}